package com.ljf.authority.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ljf.common.model.BasisModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * 权限组菜单关联对象  authority_rel_permission_group_menu
 *
 * @author LJF
 * @since 2024-10-30
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("权限组菜单关联")
@EqualsAndHashCode(callSuper = true)
@TableName("authority_rel_permission_group_menu")
public class AuthorityRelPermissionGroupMenu extends BasisModel {

	private static final long serialVersionUID = 1L;

	/**
	 * Java类型: Long
	 * 数据库类型: bigint
	 * 注释: ID
	 * {@link AuthorityRelPermissionGroupMenu#COL_ID}
	 */
	@JsonProperty("id")
	@ApiModelProperty(value = "ID")
	@TableId(value="id", type= IdType.AUTO)
	private Long id;

	/**
	 * Java类型: String
	 * 数据库类型: char(12)
	 * 注释: 权限组编码
	 * {@link AuthorityRelPermissionGroupMenu#COL_GROUP_CODE}
	 */
	@TableField("group_code")
	@JsonProperty("groupCode")
	@ApiModelProperty(value = "权限组编码")
	private String groupCode;

	/**
	 * Java类型: String
	 * 数据库类型: varchar(60)
	 * 注释: 编码
	 * {@link AuthorityRelPermissionGroupMenu#COL_MENU_CODE}
	 */
	@TableField("menu_code")
	@JsonProperty("menuCode")
	@ApiModelProperty(value = "编码")
	private String menuCode;


	/**
	 * ID
	 * {@link AuthorityRelPermissionGroupMenu#id}
	 */
	public static final String COL_ID = "id";
	/**
	 * 权限组编码
	 * {@link AuthorityRelPermissionGroupMenu#groupCode}
	 */
	public static final String COL_GROUP_CODE = "group_code";
	/**
	 * 编码
	 * {@link AuthorityRelPermissionGroupMenu#menuCode}
	 */
	public static final String COL_MENU_CODE = "menu_code";

}
